
package com.seekting.gongzhu.clientsdk;


public class ClientParser {

//    public static void parse(String str, IClient iClient) {
//        Gson gson = new Gson();
//        ActionJson actionJson = gson.fromJson(str, ActionJson.class);
//        switch (actionJson.getAction()) {
//            case Action.SET_ROLE:
//                RoleJson roleJson = gson.fromJson(str, RoleJson.class);
//                iClient.onReceiveRole(roleJson.getRole());
//                break;
//            case Action.SEND_CARDS:
//                CardsJson cardsJson = gson.fromJson(str, CardsJson.class);
//                iClient.onReceived(cardsJson.getCards());
//                break;
//            default:
//                break;
//        }
//
//    }
}
